import { Link } from "react-router-dom";
import "antd/dist/antd.css";
import Routerview from "./router/index.jsx";
import React,{useEffect,useState} from "react";
import c from "./Global_Style/index.module.scss";
import axios from "axios";
export default function App() {

  // let [flag, setflag] = useState(false)
  // useEffect(() => {
  //   const fetchData = async () => {
  //     const res = await axios("/islogin").then(res=>{
  //       console.log(res);
  //     })
      
  //   
  //     // setflag(true)
  //   }
  //   fetchData()
  // }, [])
  return (
    <div className={c["bac"]}>
      <div>
        <div className={c["yanse1"]}>
          {/* 版心 */}
          <div className={c["area"]}>
            <img
              className={c["log"]}
              src="https://s.kjcdn.com/groundwork/images/site_logo_m.png"
            />
            <div className={c["area-left"]}>
              <a href="/">
              <div className={c["but"]}>首页</div>
              </a>
              <a href="/welfare">
                <div>福利</div>
              </a>
            </div>
            <div className={c["area-right"]}>
              <div className={c["user"]}>
                <a href="/works">
                  <div className={c["zuoz"]}>作者专区</div>
                </a>
                <div className={c["yonhu"]}>
                  <img
                    className={c["touxiang"]}
                    src="https://s.kjcdn.com/i/pubrs/1e/1e/o0mtl.jpg"
                  />
                  <span className={c["ID"]}>用户名11111111</span>
                  <div className={c["hidden"]}>
                    <a href="/myBook">
                      <div>我的追书</div>
                    </a>
                    <a href="">
                      <div>我的消息</div>
                    </a>
                    <a href="">
                      <div>我要充值</div>
                    </a>
                    <a href="personal">
                      <div>个人账户</div>
                    </a>
                   
                      <div>退出账号</div>
                    
                  </div>
                  {/* <a href="/login">登录</a> */}
                </div>

                <div className={c["shouji"]}>手机阅读</div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <Routerview></Routerview>
      {/* 底部 */}
      <div className={c.box}>
        <div className={c.footer_menu}>
          <span>
            <a className={c.kujiang_a} href="">
              关于我们
            </a>
          </span>
          <span>
            <a className={c.kujiang_a} href="/welfare">
              签约作品福利
            </a>
          </span>
          <span>
            <a className={c.kujiang_a} href="">
              联系我们
            </a>
          </span>
          <span>
            <a className={c.kujiang_a} href="">
              帮助中心
            </a>
          </span>
          <span>
            <a className={c.kujiang_a} href="">
              举报中心
            </a>
          </span>
          <span>
            <a className={c.kujiang} href="">
              <img
                src="https://s.kjcdn.com/groundwork/images/v2203/QQ.png"
                alt=""
              />
              <span className={c.kefu}>客服</span>
              &nbsp;15205181216
            </a>
          </span>
        </div>
        <div className={c.card}>
          <span>南京地平线网络科技有限公司</span>
          <span>
            <a href="">新出发鼓A字第249号</a>
          </span>
          <span>苏网文[2019]0123-004号</span>
          <span>
            <a href="">苏ICP备13034923号-1</a>
          </span>
          <span>
            <a href="">苏公网安备 32010602010473号</a>
          </span>
          <span>增值电信业务经营许可证苏B2-20130371</span>
          <p className={c.line}></p>
          <p className={c.banquan_info}>
            酷匠网版权所有
            未经许可不得擅自转载本站内容。本站所收录作品、社区话题、书库评论及本站所做之广告均属个人行为，与本站立场无关请所有作者发布作品时务必遵守国家互联网信息管理办法规定，我们拒绝任何色情小说，一经发现，即作删除！违法和不良信息举报：15205181216
            举报邮箱：jubao@kujiang.com
          </p>
        </div>
        <div className={c.footer_pic}>
          <span>
            <img
              src="https://s.kjcdn.com/groundwork/images/help/wangjing.jpg"
              alt=""
            />
          </span>
          <span>
            <img
              src="https://s.kjcdn.com/groundwork/images/help/saohuang.jpg"
              alt=""
            />
          </span>
          <span>
            <img
              src="https://s.kjcdn.com/groundwork/images/help/chinajubao.jpg"
              alt=""
            />
          </span>
          <span>
            <img
              src="https://s.kjcdn.com/groundwork/images/help/jsjubao.jpg"
              alt=""
            />
          </span>
        </div>
      </div>
    </div>
  );
}
